#include "../include/mytest.h"
#include "../include/mystring.h"
#include "../include/mystdio.h"

const int test_time = 10;

char buf2[128];

uint8_t start = 10;
uint8_t end = 15;
#define LEN ((&end) - (&start))

int main(void)
{
    char buf[1024];
    // char *name = "zhouhang";
    // int rt1 = _sprintf(buf, "I'm %s her name is %s, I am %d years old!", name, "xiaoxiang", -10);
    // int rt2 = _sprintf(buf2, "%s", "Hello world!");

    // _printf("rt1 = %d | %s\n",rt1, buf);
    // _printf("rt2 = %d | %s\n", rt2, buf2);

    int test = 4;

    _sprintf(buf, "dth|%4d|asdaw%02d|%02d|%02d|%p|\n", -2, test, 34, 2, &test);

    _sprintf(buf, "start = %p, end = %p, LEN = %d\n", &start, &end, LEN);
    
    printf("%s\n",buf);
    return 0;
}
